.class public final Lcom/burstly/lib/network/ResponseObject;
.super Ljava/util/HashMap;
.source "ResponseObject.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/util/HashMap",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation


# static fields
.field private static final serialVersionUID:J = -0x502febcf5d1943f2L


# instance fields
.field private mSuperGet:Z


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 42
    invoke-direct {p0}, Ljava/util/HashMap;-><init>()V

    .line 43
    return-void
.end method

.method public constructor <init>(Ljava/util/Map;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 51
    .local p1, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    invoke-direct {p0, p1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V

    .line 52
    return-void
.end method

.method private getValueFromMap(Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;
    .locals 5
    .parameter "key"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            "Ljava/util/Map",
            "<**>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    .prologue
    .line 71
    .local p2, srcMap:Ljava/util/Map;,"Ljava/util/Map<**>;"
    const/4 v4, 0x1

    iput-boolean v4, p0, Lcom/burstly/lib/network/ResponseObject;->mSuperGet:Z

    .line 72
    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 73
    .local v2, toRet:Ljava/lang/Object;
    if-eqz v2, :cond_0

    .line 74
    const/4 v4, 0x0

    iput-boolean v4, p0, Lcom/burstly/lib/network/ResponseObject;->mSuperGet:Z

    move-object v3, v2

    .line 83
    .end local v2           #toRet:Ljava/lang/Object;
    .local v3, toRet:Ljava/lang/Object;
    :goto_0
    return-object v3

    .line 77
    .end local v3           #toRet:Ljava/lang/Object;
    .restart local v2       #toRet:Ljava/lang/Object;
    :cond_0
    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 78
    .local v0, entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<**>;"
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v4

    instance-of v4, v4, Ljava/util/Map;

    if-eqz v4, :cond_1

    .line 79
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/Map;

    invoke-direct {p0, p1, v4}, Lcom/burstly/lib/network/ResponseObject;->getValueFromMap(Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v2

    .end local v0           #entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<**>;"
    :cond_2
    move-object v3, v2

    .line 83
    .end local v2           #toRet:Ljava/lang/Object;
    .restart local v3       #toRet:Ljava/lang/Object;
    goto :goto_0
.end method


# virtual methods
.method public get(Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "key"

    .prologue
    .line 56
    iget-boolean v0, p0, Lcom/burstly/lib/network/ResponseObject;->mSuperGet:Z

    if-eqz v0, :cond_0

    .line 57
    invoke-super {p0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 59
    :goto_0
    return-object v0

    :cond_0
    invoke-direct {p0, p1, p0}, Lcom/burstly/lib/network/ResponseObject;->getValueFromMap(Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_0
.end method
